from sqlalchemy import Column, Integer, String, text
from core.config.mysql_config import Base


class Users(Base):
    __tablename__ = "users"
    __table_args__ = {
        'mysql_engine': 'InnoDB',
        'mysql_charset': 'utf8mb4',
        'mysql_collate': 'utf8mb4_unicode_ci',
        'comment': '用户表'
    }

    user_id = Column(Integer, primary_key=True, autoincrement=True, comment='用户唯一编号')
    user_name = Column(String(128, collation='utf8mb4_unicode_ci'), nullable=False, comment='用户名称')
    user_birthday = Column(String(128, collation='utf8mb4_unicode_ci'), nullable=False, comment='用户生日')

